package com.cs.controller.utils;

import lombok.Data;

@Data
public class R {
    private String code;
    private Object data;
    private String msg;

    public R(){}

    public R(Boolean flag){
        if(flag){
            this.code="200";
        }else {
            this.code="400";
        }
    }
    public R(String code,Object data){

        this.code=code;
        this.data=data;
    }
    public R(String code,String msg){
        this.code=code;
        this.msg=msg;
    }
    public R(String code,Object data,String msg){
        this.code=code;
        this.data=data;
        this.msg=msg;
    }
}
